/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evangelion.core.serviceImpl;

import com.evangelion.core.bean.Declaracion;
import com.evangelion.core.dao.DeclaracionDao;
import com.evangelion.core.service.DeclaracionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author Kellycasma
 */
@Service("declaracionService")
public class DeclaracionServiceImpl implements DeclaracionService {

    @Autowired
    private DeclaracionDao declaracionDao;

    @Override
    public void save(Declaracion declaracion) {
        declaracionDao.save(declaracion);
    }

    @Override
    public List<Declaracion> listDeclaraciones(String tipo){
        return declaracionDao.listDeclaraciones(tipo);
    }

    @Override
    public Declaracion findDeclaracion(int anno, int trimestre) {
        return declaracionDao.findDeclaracionByannoTrim(anno, trimestre);
    }
}
